/* 余额相关 */
const state = {
    integral:0,  //积分
    balance:0,  //钱包余额
    customerLevel:{}  //会员等级信息
};
//
const getter = {};
//
const mutations = {
    /* 设置积分 */
    setIntegral(state,num){
        state.integral = num;
    },
    /* 设置钱包余额 */
    setBalance(state,num){
        //console.log(num);
        //console.log(typeof num);
        state.balance = num;
    },
    /* 设置会员等级信息 */
    setCustomerLevel(state, info){
        state.customerLevel = info;
    }
};
//
const actions = {};
//
export default {
    namespaced: true,
    state,
    getter,
    mutations,
    actions
};